<?php

$id = empty($_GET['id']) ? 0 : intval($_GET['id']);
if($id > 0){
	$oPrototype = new Prototype();
	$prototype_info = $oPrototype->get_row($id, '*');
	
	$prototype_info['value'] = $oPrototype->format_value_out($prototype_info['type'], $prototype_info['value']);
}else{
	$prototype_info = array('type' => 0, 'rank' => 10000);
}
$prototype_info['type_options'] = make_options(Statics::$prototype_type_arr, true, $prototype_info['type']);
$vars['info'] = $prototype_info;

?>